home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / dev / c / ExtrasLib.lha / ExtrasLib / Include / Extras / OBSOLETE / layoutboxes.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-30  |  1.7 KB  |  91 lines

  1. #ifndef EXTRAS_LAYOUTBOXES_H
  2. #define EXTRAS_LAYOUTBOXES_H
  3.  
  4. #include <exec/types.h>
  5. #include <intuition/intuition.h>
  6.  
  7. #define NEWGADGETBOX(ngad)  ((struct IBox *)ngad)
  8.  
  9. struct LBox
  10. {
  11.   struct Node Node;
  12.   ULONG   lb_ID;
  13.   struct  IBox lb_SrcBounds;
  14.   ULONG   lb_GroupFlags;          
  15.   ULONG   lb_RelFlags;   /* Rel to parent LBox */
  16.   struct  IBox lb_DstBounds;
  17. };
  18.  
  19. struct Group
  20. {
  21.   struct Node Node;
  22.   struct List Boxes; /* Boxes in this group */
  23.   ULONG  GroupFlags;
  24. };
  25.  
  26.  
  27.  
  28.  
  29. #define LB_GF_BEGIN    (1<<1)
  30. #define LB_GF_END      (1<<2)
  31. #define LB_GF_SPREAD_X (1<<3)
  32. #define LB_GF_SPREAD_Y (1<<4)
  33. #define LB_GF_WRAP     (1<<5)
  34.  
  35. /*
  36. #define LB_GRP_SPREADX  (LB_GRP_BEGIN | 1<<2)
  37. #define LB_GRP_SPREADY  (LB_GRP_BEGIN | 1<<3)
  38. #define LB_GRP_WRAP     (1<<4)
  39. */
  40. #define LB_REL_RIGHT   (1<<0)
  41. #define LB_REL_BOTTOM  (1<<1)
  42. #define LB_REL_WIDTH   (1<<2)
  43. #define LB_REL_HEIGHT  (1<<3)
  44.  
  45. #define LB_REL_SCALE_LEFT   (1<<4)
  46. #define LB_REL_SCALE_WIDTH  (1<<5)
  47. #define LB_REL_SCALE_TOP     (1<<6)
  48. #define LB_REL_SCALE_HEIGHT  (1<<7)
  49.  
  50. #define LB_REL_SCALE_HORIZ   (LB_REL_SCALE_LEFT | LB_REL_SCALE_WIDTH)
  51. #define LB_REL_SCALE_VERT   (LB_REL_SCALE_TOP | LB_REL_SCALE_HEIGHT)
  52.  
  53. #define LBS(x) (x * 32767)
  54.  
  55. /* Example :
  56. struct LBox
  57. {
  58.   {WIN_BOX, 0,  0,100,100,                             0,             0 },
  59.     {GAD1_BOX,   0,  0,100,-10, LB_GF_BEGIN                 , LB_REL_HEIGHT },
  60.     {GAD_BOX, 0,  0,  0, 12, LB_GF_END                  0, LB_REL_HEIGHT }, 
  61.   {END_LBOX}
  62. };
  63.  
  64. */
  65.  
  66. /*
  67.  
  68. LGRP_SpreadX
  69. LGRP_SpreadY
  70. LGRP_Wrap    /* Space amount */
  71.  
  72. LBOX_RelWidth
  73. LBOX_RelHeight
  74. LBOX_RelRight
  75. LBOX_RelBottom
  76. LBOX_Justified
  77. LBOX_SpreadWeight
  78. LBOX_Above
  79. LBOX_Below
  80. LBOX_Right
  81. LBOX_Left
  82.  
  83.  
  84. */
  85.  
  86.  
  87.  
  88. #endif /* EXTRAS_LAYOUTBOXES_H */
  89.  
  90.  
  91.